package com.superpeer.baseproject.activity;

import com.superpeer.baseproject.base.BaseModel;
import com.superpeer.baseproject.base.BasePresenter;
import com.superpeer.baseproject.base.BaseView;
import com.superpeer.baseproject.bean.BaseBeanResult;

import retrofit2.http.Query;
import rx.Observable;

public interface MainContract {
    interface Model extends BaseModel {
        Observable<BaseBeanResult> getNews(int defaultCurrent,int pageSize);
    }

    interface View extends BaseView {
        void showGetNews(BaseBeanResult baseBeanResult);
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void getNews(int defaultCurrent,int pageSize);
    }
}
